package string;
/** char charAt(int index) 返回 */
public class CharAtDemo {
    public static void main(String[] args) {
        //            012345678901234567890123456789
        String str = "thinking in java 2302 yyds";
        char c = str.charAt(5);//获取str中下标5所对应的数
        System.out.println(c);//i

        String str1 = "thinking in java";
        char c1 = str1.charAt(4);
        System.out.println(c1);

    }
}
